import request from '@/utils/request'


export function optionsOption(query) {
  return request({
    url: '/kh/option/options',
    method: 'get',
    params: query
  })
}
// 查询考核指标选项列表
export function listOption(query) {
  return request({
    url: '/kh/option/list',
    method: 'get',
    params: query
  })
}

// 查询考核指标选项详细
export function getOption(id) {
  return request({
    url: '/kh/option/' + id,
    method: 'get'
  })
}

// 新增考核指标选项
export function addOption(data) {
  return request({
    url: '/kh/option',
    method: 'post',
    data: data
  })
}

// 修改考核指标选项
export function updateOption(data) {
  return request({
    url: '/kh/option',
    method: 'put',
    data: data
  })
}

// 删除考核指标选项
export function delOption(id) {
  return request({
    url: '/kh/option/' + id,
    method: 'delete'
  })
}

// 导出考核指标选项
export function exportOption(query) {
  return request({
    url: '/kh/option/export',
    method: 'get',
    params: query
  })
}
